package com.xframe.common.config;

import com.xframe.common.core.interceptor.CredentialsInterceptor;
import com.xframe.common.core.interceptor.InterceptorConfig;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
public class InterceptorAutoConfiguration {

    @Bean
    public CredentialsInterceptor dataCredentialsInterceptor() {
        return new CredentialsInterceptor();
    }
    @Bean
    public InterceptorConfig dataInterceptorConfig() {
        return new InterceptorConfig();
    }

}
